/*    */ package com.feeyin.radar.sys.dao.impl;
/*    */ 
/*    */ import com.feeyin.radar.sys.dao.OperateDAO;
/*    */ import com.feeyin.radar.sys.model.Operate;
/*    */ import java.util.List;
/*    */ import org.springframework.orm.ibatis.SqlMapClientTemplate;
/*    */ import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
/*    */ 
/*    */ public class OperateDAOImpl extends SqlMapClientDaoSupport
/*    */   implements OperateDAO
/*    */ {
/*    */   public List getOperates()
/*    */   {
/* 21 */     return getSqlMapClientTemplate().queryForList("getOperates");
/*    */   }
/*    */ 
/*    */   public List getOperatesByActivity() {
/* 25 */     return getSqlMapClientTemplate().queryForList("getOperatesByActivity");
/*    */   }
/*    */ 
/*    */   public List getOperatesByFunctionId(Integer functionId) {
/* 29 */     return getSqlMapClientTemplate().queryForList("getOperatesByFunctionId", functionId);
/*    */   }
/*    */ 
/*    */   public List getOperatesByUserId(Integer userId) {
/* 33 */     return getSqlMapClientTemplate().queryForList("getOperatesByUserId", userId);
/*    */   }
/*    */ 
/*    */   public Operate getOperateByCode(String operateCode) {
/* 37 */     return (Operate)getSqlMapClientTemplate().queryForObject("getOperateByCode", operateCode);
/*    */   }
/*    */ 
/*    */   public Operate getOperate(Integer id) {
/* 41 */     return (Operate)getSqlMapClientTemplate().queryForObject("getOperate", id);
/*    */   }
/*    */ 
/*    */   public boolean insertOperate(Operate operate) {
/* 45 */     Integer result = (Integer)getSqlMapClientTemplate().insert("insertOperate", operate);
/* 46 */     return result != null;
/*    */   }
/*    */ 
/*    */   public boolean updateOperate(Operate operate)
/*    */   {
/* 51 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().update("updateOperate", operate));
/* 52 */     return result != null;
/*    */   }
/*    */ 
/*    */   public boolean deleteOperate(Integer id)
/*    */   {
/* 57 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().delete("deleteOperate", id));
/* 58 */     return result != null;
/*    */   }
/*    */ }

/* Location:           C:\Users\e547415\MyProject\rone\WEB-INF\classes\
 * Qualified Name:     com.feeyin.radar.sys.dao.impl.OperateDAOImpl
 * JD-Core Version:    0.6.0
 */